package com.thingcom.delinrobot.Common.Frame;

import androidx.annotation.Nullable;

import com.thingcom.delinrobot.utils.HexUtil;
import com.xuhao.android.libsocket.sdk.bean.ISendable;

/**
 * author : YuFeng
 * e-mail : 923462992@qq.com
 * date   : 2020/1/3
 */
public class SetWorkingArea implements ISendable {

    private byte[] send = HexUtil.hexStringToBytes
            ("68 01 00 00 00 00 00 06 00 01 05 01 01 F4 6E 16"," ");

    public SetWorkingArea(@Nullable String mac,byte[] dataArea) {
        send = FrameUtils.setDataArea(send,dataArea);
        FrameUtils.setMAC(send,mac,false);
        FrameUtils.addFrameCount(send,FrameUtils.getCurrentFrameNum());

    }

    @Override
    public byte[] parse() {
        return send;
    }

    @Override
    public void setSendByte(byte[] sendByte) {

    }

    @Override
    public String getFrameStr() {
        return null;
    }
}
